<script setup lang="ts">
import { useCountStore } from '../store/count.ts'
import {useTalkStore} from '../store/talk'

const countStore = useCountStore();
countStore.sum = 1
countStore.$patch({
  sum:1,
  school:'atguigu'
})
countStore.increment(9)

const talkStore = useTalkStore()
</script>

<template>
  <div>
    <h2>当前求和为：{{ countStore.sum }}</h2>
    <ul>
      <li v-for="talk in talkStore.talkList" :key="talk.id">
        {{ talk.content }}
      </li>
    </ul>
  </div>

</template>

<style scoped>

</style>